package _09设计工厂模式;


public class Demo9 {
    public static void main(String[] args) {
        Car bm = Carfactory.createCar(CarTYPE.BaoMa);
        System.out.println(bm);
        bm.run();

        Car bc = Carfactory.createCar(CarTYPE.BenChi);
        System.out.println(bc);
        bc.run();



    }
}
